//
//  MZYbrandCollectionViewCell.m
//  WristWatch
//
//  Created by dllo on 15/10/28.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "MZYbrandCollectionViewCell.h"


#define WIDTh self.contentView.frame.size.width
#define HEIGHt self.contentView.frame.size.height
@implementation MZYbrandCollectionViewCell

- (void)dealloc {
    [_nameImageView release];
    [_nameLabel release];
    [_engLabel release];
    [_titleView release];
    
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.titleView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, WIDTh, HEIGHt)];
        [self.contentView addSubview:self.titleView];
        self.titleView.layer.borderWidth = 1;
        self.titleView.layer.borderColor = [[UIColor groupTableViewBackgroundColor] CGColor];
        [self.titleView release];
        
        
        self.nameImageView = [[UIImageView alloc] initWithFrame:CGRectMake(30, 0, WIDTh - 60, HEIGHt / 5 * 4 - 10)];
//        self.nameImageView.backgroundColor = [UIColor redColor];
        [self.titleView addSubview:self.nameImageView];
        [_nameImageView release];
        
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, HEIGHt / 3 * 2, WIDTh, HEIGHt / 4)];
        self.nameLabel.numberOfLines = 0;
//        self.nameLabel.backgroundColor = [UIColor blueColor];
        [self.titleView addSubview:self.nameLabel];
        [_nameLabel release];
        


        
    }
    return self;
}




@end
